@layout("/common/_container.html",{js:["/assets/modular/stock/stockStrategy/stockStrategy_edit.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">修改</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="stockStrategyForm" lay-filter="stockStrategyForm" class="layui-form model-form"
                  style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span style="color: red;">*</span>证券代码</label>
                    <div class="layui-input-block">
                        <input id="code" name="code" placeholder="请输入证券代码" type="text" class="layui-input"
                               lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span style="color: red;">*</span>证券名称</label>
                    <div class="layui-input-block">
                        <input id="name" name="name" placeholder="请输入证券名称" type="text" class="layui-input"
                               lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span style="color: red;">*</span>事件类型</label>
                    <div class="layui-input-block">
                        <input type="radio" name="eventType" value="1" title="买入"/>
                        <input type="radio" name="eventType" value="2" title="卖出"/>
                        <input type="radio" name="eventType" value="3" title="交易完成"/>
                        <!--                        <input id="eventType" name="eventType" placeholder="请输入" type="text" class="layui-input" lay-verify="required" required/>-->
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">选择仓位</label>
                    <div class="layui-input-block" id="stockPositionDiv">
                        <input type="radio" name="selectPosition" value="0" title="测试"/>
                        <input type="radio" name="selectPosition" value="0.3" title="1/3仓位"/>
                        <input type="radio" name="selectPosition" value="0.5" title="半仓"/>
                        <input type="radio" name="selectPosition" value="0.75" title="3/4仓位"/>
                        <input type="radio" name="selectPosition" value="1" title="全仓" />
                        <input type="radio" name="selectPosition" value="define" title="自定义" checked/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">仓位<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="stockPosition" type="number" name="stockPosition" title="自定义仓位" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label"><span style="color: red;">*</span>买入理由</label>
                    <div class="layui-input-block">
                        <textarea id="remark" name="remark" placeholder="买入理由" class="layui-textarea"></textarea>
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">买入价</label>
                    <div class="layui-input-block">
                        <input id="buyPrice" name="buyPrice" placeholder="请输入" type="text" class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">止损价</label>
                    <div class="layui-input-block">
                        <input id="stopLossPrice" name="stopLossPrice" placeholder="请输入" type="text"
                               class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">盈利价</label>
                    <div class="layui-input-block">
                        <input id="takeProfitPrice" name="takeProfitPrice" placeholder="请输入" type="text"
                               class="layui-input"/>
                    </div>
                </div>
                <!--                <div class="layui-form-item">-->
                <!--                    <label class="layui-form-label">买入时间</label>-->
                <!--                    <div class="layui-input-block">-->
                <!--                        <input id="buyDate" name="buyDate" placeholder="请输入" type="text" class="layui-input"/>-->
                <!--                    </div>-->
                <!--                </div>-->
                <div class="layui-form-item">
                    <label class="layui-form-label">收益率</label>
                    <div class="layui-input-block">
                        <input id="profitRate" name="profitRate" placeholder="请输入" type="text" class="layui-input"/>
                    </div>
                </div>
                <!--                <div class="layui-form-item">-->
                <!--                    <label class="layui-form-label">卖出时间</label>-->
                <!--                    <div class="layui-input-block">-->
                <!--                        <input id="sellDate" name="sellDate" placeholder="请输入" type="text" class="layui-input"/>-->
                <!--                    </div>-->
                <!--                </div>-->
                <div class="layui-form-item">
                    <label class="layui-form-label">买入数量</label>
                    <div class="layui-input-block">
                        <input id="buyAmount" name="buyAmount" placeholder="请输入" type="text" class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">卖出数量</label>
                    <div class="layui-input-block">
                        <input id="sellAmount" name="sellAmount" placeholder="请输入" type="text" class="layui-input"/>
                    </div>
                </div>


                <!--                <div class="layui-form-item">-->
                <!--                    <label class="layui-form-label"><span style="color: red;">*</span>创建时间</label>-->
                <!--                    <div class="layui-input-block">-->
                <!--                        <input id="gmtCreate" name="gmtCreate" placeholder="请输入" type="text" class="layui-input"/>-->
                <!--                    </div>-->
                <!--                </div>-->
                <!--                <div class="layui-form-item">-->
                <!--                    <label class="layui-form-label"><span style="color: red;">*</span>修改时间</label>-->
                <!--                    <div class="layui-input-block">-->
                <!--                        <input id="gmtModified" name="gmtModified" placeholder="请输入" type="text" class="layui-input" lay-verify="required" required/>-->
                <!--                    </div>-->
                <!--                </div>-->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}